/*
 * @Descripttion: 
 * @version: 
 * @Author: Lee
 * @Date: 2020-06-10 09:42:21
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2020-06-10 11:17:48
 */ 
import babel from 'rollup-plugin-babel';
import serve from 'rollup-plugin-serve';

export default {
    input: './src/index.js',
    output: {
        format: 'umd', // amd commonjs 规范 默认将打包后的文件挂载到window上
        file: 'dist/vue.js', // 打包出的vue.js new vue
        name: 'Vue',
        sourcemap: true // 是否打包源码
    },
    plugins: [
        babel({
            exclude: 'node_modules/**'
        }),
        serve({
            open: true,
            openPage: '/public/index.html', //默认文件
            port: 3000,
            contentBase: ''
        })
    ]
}